package com.sudo.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author 为道日损
 * webSite：https://wwww.sudo.ren
 */
@SpringBootApplication
//@EnableRedisHttpSession  // 开启使用redis作为springSession
//mybatis指定扫描该包 ,也可以用@Mapper替代该注解，不过需要在每个mapper.java 上添加该注解
@MapperScan(basePackages = {"com.sudo.dao.*.mapper"})
@ComponentScan(basePackages={"com.sudo.common.component","com.sudo.service", "com.sudo.api"})
@EnableAsync
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
